package com.xucan.io;

import java.nio.charset.Charset;

public class Code {
    public static void main(String[] args) {
        System.out.println(Charset.defaultCharset());
        String unicodeString = "\u0041\u20AC\uD83D\uDE00";
        System.out.println(unicodeString); // 输出：A€😀
        String emoji = "\uD83D\uDE00";
        System.out.println(emoji.charAt(0)); // 输出：�
        System.out.println(emoji.charAt(1)); // 输出：�
        System.out.println(emoji.codePointAt(0)); // 输出：128512
        System.out.println(emoji.codePointAt(1)); // 输出：55357
    }
}
